package com.youkeda.redpacket.service;

import com.youkeda.redpacket.model.UserRedEnvelopeRecord;
import com.youkeda.redpacket.params.UserRedEnvelopeRecordQueryParam;

import java.util.List;

/**
 * @author 刘正星
 * @version 1.0.0
 * @ClassName UserRedEnvelopeRecordService.java
 * @Description TODO
 * @createTime 2020年09月29日 14:13:00
 */

public interface UserRedEnvelopeRecordService {
    /**
     * 插入
     * @param userRedEnvelopeRecord
     * @return
     */
    UserRedEnvelopeRecord save(UserRedEnvelopeRecord userRedEnvelopeRecord);

    /**
     * 查询
     * @param param
     * @return
     */
    List<UserRedEnvelopeRecord> query(UserRedEnvelopeRecordQueryParam param);

    UserRedEnvelopeRecord get(String id);
}
